import { defineStore } from 'pinia';

export interface Model {
  id: string;
  name: string;
  type: string;
  provider: string;
  apiKey: string;
  status: 'active' | 'inactive';
}

export const useModelsStore = defineStore('models', {
  state: () => ({
    models: [] as Model[],
  }),
  
  actions: {
    async fetchModels(): Promise<Model[]> {
      // TODO: 实现从后端获取模型列表的逻辑
      return [];
    },
    
    async createModel(model: Omit<Model, 'id'>): Promise<Model> {
      // TODO: 实现创建模型的逻辑
      return { ...model, id: Date.now().toString() };
    },
    
    async updateModel(model: Model): Promise<Model> {
      // TODO: 实现更新模型的逻辑
      return model;
    },
    
    async deleteModel(id: string): Promise<void> {
      // TODO: 实现删除模型的逻辑
    }
  }
}); 